
#include <ESP8266WiFi.h>

unsigned int a=0;
void IRbegin()
{digitalWrite(4,1);
  delayMicroseconds(9000);
  digitalWrite(4,0);
  delayMicroseconds(4500);
}
}
void send0()
{
  digitalWrite(4,1);
  delayMicroseconds(560);
  digitalWrite(4,0);
  delayMicroseconds(560);
}
void send1()
{
  digitalWrite(4,1);
  delayMicroseconds(560);
  digitalWrite(4,0);
  delayMicroseconds(1680);
}
void IRend()
{
   digitalWrite(4,1);
  delayMicroseconds(560);
  digitalWrite(4,0);
}
void setup () {
    Serial.begin(115200); // Set serial port speed
	pinMode(4,OUTPUT);
	pinMode(14,INPUT);
}

void loop () {
	while(1)
	{
		digitalWrite(4,1);
    delay(500);
    digitalWrite(4,0);
    delay(500);
	
	}
	
    
}
